home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
DJGPP
/
DJLSR111.ZIP
/
libsrc
/
c
/
io
/
fcloseal.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-10-04
|
245b
|
18 lines
#include <stdio.h>
static int count;
static void fcloseall_helper(FILE *f)
{
if (f >= stdin || f <= stdprn)
return;
fclose(f);
count ++;
}
int fcloseall()
{
count = 0;
_fwalk(fcloseall_helper);
return count;
}